import com.sun.org.apache.xpath.internal.operations.Equals;


public class BookShell {
 public static void showbook(Book book) {
	 System.out.printf("book  = %s\nauth = %s\nchubanshe = %s\ndate = %s\n",book.getName(),book.getAuth(),book.getChubanshe(),book.getDate());
	
}
 public static void main(String []args) {
	 Book book1 = new Book();
	 book1.setName("Java");
	 book1.setAuth("MR.wang");
	 book1.setChubanshe("renmin");
	 book1.setDate("2017");
	 showbook(book1);
	 
	 Book book2 = new Book();
	 book2.setName("Java");
	 book2.setAuth("MR.wang");
	 book2.setChubanshe("renmin");
	 book2.setDate("2017");
	 System.out.print(book1.equals(book2));
}
}
